import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import "./router/premit"; // 路由守卫
import store from "./store";
import ElementPlus from "element-plus";
import "element-plus/lib/theme-chalk/index.css";
import "./styles/main.scss";
import "@/icons/index";
import locale from "element-plus/lib/locale/lang/zh-cn";

const app = createApp(App);
// runtime运行模式
app
  .use(ElementPlus, { locale })
  .use(store)
  .use(router)
  .mount("#app");
